package com.qf.service.impl;

import com.qf.dao.UserDao;
import com.qf.dao.impl.UserDaoImpl;
import com.qf.service.UserService;

public class UserServiceImpl implements UserService {

    //强耦合
//    private UserDao userDao = new UserDaoImpl();

    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }


    @Override
    public void insertUser() {

        System.out.println("UserServiceImpl 插入用户 ok....");

        userDao.inserUser();
    }
}
